package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);
    public void setSetmealAndCheckGroup(Map<String,Integer> map);

    public Page<CheckItem> findByCondition(String queryString);

    public List<Setmeal> findAll();

    public Setmeal findById4Detail(Integer id);

    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    public void deleteById(Integer id);
    public long findCountBySetmealId(Integer checkGroupId);


    void deleteAssociation(Integer id);
    void edit(Setmeal setmeal);

     void kgClose(Map<Integer,Integer> map);
     void kgOpen(Map<Integer,Integer> map);
}
